<!DOCTYPE html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
    <div class="manhua">
       <img src="https://c-ssl.duitang.com/uploads/blog/202205/30/20220530180647_6a029.png">
    </div>
	<script>
        window.addEventListener('scroll', function() {  
            // 获取页面滚动的距离  
            var scrollDistance = window.pageYOffset;  
            // 判断是否滚动到一定距离，比如1000px，就加载新的图片  
            if (scrollDistance > 1000) {  
                // 加载新图片的函数  
                loadNewImage();  
            }  
        });  
        function loadNewImage() {  
            document.querySelector(".manhua img").setAttribute("src","https://c-ssl.dtstatic.com/uploads/blog/202205/30/20220530180647_8ea89.thumb.1000_0.jpeg");
        }
    </script>
 </body>
</html>
